﻿using UnityEngine;
using System.Collections;

public class EnemyControllerVoador1Bullet : MonoBehaviour {
	
	public GameObject player;
	// Use this for initialization
	void Start () {
		transform.LookAt(player.transform.position);
	}
	
	// Update is called once per frame
	void Update () {
		this.rigidbody.AddForce(new Vector3(transform.forward.x + 0.9f, transform.forward.y, transform.forward.z) * 10f);
	
	}
	
	void OnCollisionEnter(Collision other)
	{
		Destroy(this.gameObject);
	}
}
